/**
 * Index Template API
 *
 * @date 2020-09-08
 * @author 逗号米
 */

import http from '@/api'

// 前缀
const prefix = `${http}/cms/common/company-template`

/**
 * 首页
 *
 * @return {string}
 */
export const index: string = `${prefix}`

/**
 * 存储
 *
 * @return {string}
 */
export const store: string = `${prefix}`

/**
 * 显示
 *
 * @param id
 * @return {string}
 */
export const show = (id: number): string => `${prefix}/${id}`

/**
 * 更新
 *
 * @param id
 * @return {string}
 */
export const update = (id: number): string => `${prefix}/${id}`

/**
 * 删除
 *
 * @param id
 * @return {string}
 */
export const destroy = (id: number): string => `${prefix}/${id}`

/**
 * 查询
 *
 * @return {string}
 */
export const query: string = `${prefix}/query`

/**
 * 选项
 *
 * @return {string}
 */
export const options: string = `${prefix}/options`